package homework;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Homework3 {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		Judge judge = new Judge();
		boolean flag = false;
		String birthday;
		String password;
		do{
			System.out.print("请输入会员生日<月/日：00/00>:");
			birthday = input.next();
			flag = judge.isValidDate(birthday);
		}while(!flag);
		System.out.println("该会员生日是：" + birthday);
		
		do{
			System.out.println("请输入会员密码<6-10位>：");
			password = input.next();
			flag =password.length() < 6 || password.length() > 10;
			if (flag){
				System.out.println("密码形式输入错误！");
			}
		}while(flag);
		System.out.println("该会员的密码是：" + password);
	}
}
